package com.zdsx.config;

import org.springframework.cache.caffeine.CaffeineCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Lr
 * https://blog.csdn.net/qq_41893136/article/details/132579314
 * @create 2023/6/8 14:42
 **/
@Configuration
public class CaffeineCacheConfig {

    @Bean
    public CaffeineCacheManager cacheManager() {
        CaffeineCacheManager  caffeineCacheManager = new CaffeineCacheManager();
        return caffeineCacheManager;
    }

}
